<template>
  <div class="registerDetail">
    <div class="task_header">
      <div class="top_title">
        <div class="top_title_back" @click="onClickLeft">
          <i class="iconfont icon-back"></i>
        </div>
        <div class="top_title_val">{{ $route.meta.title }}</div>
      </div>
    </div>

    <div class="task_detail">
      <div style="font-size: 12px;position: absolute;z-index: 200;width: 100%;" v-if="!!dataSource.currentGradeName">
        <div style="position: relative">
          <div style="position: absolute;top: 0;right: 0;background-color: red;width: max-content;color: white;padding: 3px 10px;border-radius: 3px;margin-top: 1px">
            {{ dataSource.currentGradeName }}
          </div>
        </div>
      </div>
      <div class="task_detail_header">

        <div class="task_detail_headerbox">
          <div class="title">
            {{ dataSource.carNo ? dataSource.carNo : '-' }}
            <i class="iconfont icon-edit" @click.stop="editCarNo(dataSource)"></i>
          </div>
          <div class="name">
            <div class="txt">{{ dataSource.customerName ? dataSource.customerName : '-' }}</div>
            <div class="txt">{{ dataSource.vinCode ? dataSource.vinCode : '-' }}</div>
          </div>
        </div>
      </div>
    </div>

    <van-popup v-model="showTablistVisible" :style="{ height: '160px' }" closeable position="bottom">
      <div class="pop_tab">
        <div class="title">选项卡快速选择</div>
        <div class="pop_tablist">
          <div v-for="(item, index) in tabList" :key="index" :class="tabIndex == index ? 'active' : ''"
               class="pop_tab_item" @click.stop="handleTab(index)">
            {{ item.name }}
          </div>
        </div>
      </div>
    </van-popup>
    <div class="tabBarBox">
      <div class="icon_menubox" @click.stop="showTablistVisible = true">
        <img class="icon_menu" src="@/assets/images/show_menu.png" />
      </div>
      <van-tabs v-model="tabIndex" :swipe-threshold="3">
        <van-tab title="车辆信息">
          <div class="detailbox_item mt175">
            <div class="detailbox_item_title">车辆信息</div>
            <div class="detail_content">
              <div class="task_itembox">
                <div class="task_itembox_con">
                  <div class="task_label">所属维修中心：</div>
                  <div class="task_value">{{ dataSource.fixCenterName ? dataSource.fixCenterName : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">所属服务顾问：</div>
                  <div class="task_value">{{ dataSource.serverPsnName ? dataSource.serverPsnName : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">车辆来源：</div>
                  <div class="task_value">{{ dataSource.carType ? dataSource.carType : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">所属销售人员：</div>
                  <div class="task_value">{{ dataSource.sellPsnName ? dataSource.sellPsnName : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">车型：</div>
                  <div class="task_value">{{ dataSource.carModelNameName ? dataSource.carModelNameName : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">款式（年款）：</div>
                  <div class="task_value">{{ dataSource.style ? dataSource.style : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">里程数：</div>
                  <div class="task_value">{{ dataSource.currCarMile ? dataSource.currCarMile + 'km' : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">上次进场时间：</div>
                  <div class="task_value">{{ dataSource.lastIn ? dataSource.lastIn : '- -' }}</div>
                </div>
                <div class="task_itembox_con" style="width: 100%">
                  <div class="task_label">车辆属性值：</div>
                  <div class="task_value">{{ dataSource.totalPrp ? dataSource.totalPrp : '- -' }}</div>
                </div>

                <div class="task_itembox_con">
                  <div class="task_label">车辆状态：</div>
                  <div class="task_value">{{ carInfoKhyy.clzt ? carInfoKhyy.clzt : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">保险状态：</div>
                  <div class="task_value">{{ carInfoKhyy.bxzt ? carInfoKhyy.bxzt : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">所属客户管家：</div>
                  <div class="task_value">{{ carInfoKhyy.khgj ? carInfoKhyy.khgj : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">上次接待SA：</div>
                  <div class="task_value">{{ carInfoKhyy.lastStoreSa ? carInfoKhyy.lastStoreSa : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">上次保险出单人：</div>
                  <div class="task_value">{{ carInfoKhyy.insDjr ? carInfoKhyy.insDjr : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">上次保险出单时间：</div>
                  <div class="task_value">{{ carInfoKhyy.insCdrq ? carInfoKhyy.insCdrq : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">上次保险出单类型：</div>
                  <div class="task_value">{{ carInfoKhyy.insLx ? carInfoKhyy.insLx : '- -' }}</div>
                </div>
              </div>
            </div>
          </div>
          <div class="detailbox_item">
            <div class="detailbox_item_title">车辆保修保险信息</div>
            <div class="carInfo_content">
              <div class="carInfo_item">
                <div class="item_label">保险类型：</div>
                <div class="item_val">{{ dataSource.inusuranceType ? dataSource.inusuranceType : '- -' }}</div>
              </div>

              <div class="carInfo_item">
                <div class="item_label">保险公司：</div>
                <div class="item_val">{{ dataSource.inusuranceComName ? dataSource.inusuranceComName : '- -' }}</div>
              </div>
              <div class="carInfo_item">
                <div class="item_label">保险到期日：</div>
                <div class="item_val">{{ dataSource.inusuranceDate ? dataSource.inusuranceDate : '- -' }}</div>
              </div>
              <div class="carInfo_item">
                <div class="item_label">原厂保修到期日：</div>
                <div class="item_val">{{ carAssociatedInfo.fixEndDate ? carAssociatedInfo.fixEndDate : '- -' }}</div>
              </div>
              <div class="carInfo_item">
                <div class="item_label">自营延保到期日：</div>
                <div class="item_val">{{ carAssociatedInfo.zyEndDate ? carAssociatedInfo.zyEndDate : '- -' }}</div>
              </div>
            </div>
          </div>
          <div class="detailbox_item">
            <div class="detailbox_item_title">非车险种记录</div>
            <div class="repair_content">
              <div class="repair_list" v-if="carAssociatedInfo.notCarBill && carAssociatedInfo.notCarBill.length != 0">
                <div class="repair_item" v-for="(item, index) in carAssociatedInfo.notCarBill" :key="index">
                  <!-- <div class="repair_list" v-if="repairList && repairList.length != 0">
                  <div class="repair_item" v-for="(item, index) in repairList" :key="index">-->
                  <div class="item_bottom">
                    <div class="item_box">
                      <div class="item_lt">
                        <div class="item_lable">投保险种：</div>
                        <div class="item_val">{{ item.insName ? item.insName : '- -' }}</div>
                      </div>
                      <div class="item_rt2">
                        <div class="item_lable">保险公司：</div>
                        <div class="item_val">{{ item.insCmpName ? item.insCmpName : '- -' }}</div>
                      </div>
                    </div>
                    <div class="item_box">
                      <div class="item_lt">
                        <div class="item_lable">起保日期：</div>
                        <div class="item_val">{{ item.beginDate ? item.beginDate : '- -' }}</div>
                      </div>
                      <div class="item_rt2">
                        <div class="item_lable">终保日期：</div>
                        <div class="item_val">{{ item.endDate ? item.endDate : '- -' }}</div>
                      </div>
                    </div>
                    <div class="item_box">
                      <div class="item_lt">
                        <div class="item_lable">被保险人：</div>
                        <div class="item_val">{{ item.insPsn ? item.insPsn : '- -' }}</div>
                      </div>
                      <div class="item_rt2">
                        <div class="item_lable">被保险人电话：</div>
                        <div class="item_val">{{ item.insPhone ? item.insPhone : '- -' }}</div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <div class="no_icon" v-else>
                <img class="no_icon_img" src="@/assets/images/no_icon.png" />
                <div class="no_icon_txt">暂无内容</div>
              </div>
            </div>
          </div>
          <div class="detailbox_item mb80">
            <div class="detailbox_item_title">其他信息</div>
            <div class="carInfo_content">
              <div class="carInfo_item">
                <div class="item_label">购车时间：</div>
                <div class="item_val">{{ dataSource.deliverTime ? dataSource.deliverTime : '- -' }}</div>
              </div>
              <div class="carInfo_item">
                <div class="item_label">是否会员绑定车辆：</div>
                <div class="item_val">{{ dataSource.memberTies ? dataSource.memberTies : '- -' }}</div>
              </div>
              <div class="carInfo_item">
                <div class="item_label">车辆是否已卖：</div>
                <div class="item_val">{{ dataSource.resSell ? dataSource.resSell : '- -' }}</div>
              </div>
            </div>
          </div>
        </van-tab>
        <van-tab title="联系人信息">
          <div class="detailbox_item mt175">
            <div class="detailbox_item_title">联系人信息</div>
            <div class="contact_content">
              <div class="contact_item">
                <div class="contact_top">
                  <div class="item_label">客户信息</div>
                  <div class="item_icon">
                    <img class="item_img" src="@/assets/images/wechat_icon.png" @click="getExList(dataSource.carNo, dataSource.customerName)" />
                    <img class="item_img" src="@/assets/images/tel_icon.png" @click="handleTel(getAllName('客户',dataSource.customerName),dataSource.mobile)" />
                  </div>
                </div>
                <div class="contact_bottom">
                  <div class="item_name">
                    <div class="txt1">姓名：</div>
                    <div class="txt2">{{ dataSource.customerName ? dataSource.customerName : '-' }}</div>
                  </div>
                  <div class="item_name">
                    <div class="txt1">手机号码：</div>
                    <div class="txt2">{{ dataSource.mobile ? dataSource.mobile : '-' }}</div>
                  </div>
                </div>
              </div>

              <div class="contact_item">
                <div class="contact_top">
                  <div class="item_label">车主信息</div>
                  <div class="item_icon">
                    <img class="item_img" src="@/assets/images/wechat_icon.png" @click="getExList(dataSource.carNo, dataSource.ownerName)" />
                    <img class="item_img" src="@/assets/images/tel_icon.png" @click="handleTel(getAllName('车主',dataSource.ownerName),dataSource.ownerPhone)" />
                  </div>
                </div>
                <div class="contact_bottom">
                  <div class="item_name">
                    <div class="txt1">姓名：</div>
                    <div class="txt2">{{ dataSource.ownerName ? dataSource.ownerName : '-' }}</div>
                  </div>
                  <div class="item_name">
                    <div class="txt1">手机号码：</div>
                    <div class="txt2">{{ dataSource.ownerPhone ? dataSource.ownerPhone : '-' }}</div>
                  </div>
                </div>
              </div>

              <div class="contact_item">
                <div class="contact_top">
                  <div class="item_label">送修人信息</div>
                  <div class="item_icon">
                    <img class="item_img" src="@/assets/images/wechat_icon.png" @click="getExList(dataSource.carNo, dataSource.contactPeople)" />
                    <img class="item_img" src="@/assets/images/tel_icon.png" @click="handleTel(getAllName('送修人',dataSource.contactPeople),dataSource.contactPhone)" />
                  </div>
                </div>
                <div class="contact_bottom">
                  <div class="item_name">
                    <div class="txt1">姓名：</div>
                    <div class="txt2">{{ dataSource.contactPeople ? dataSource.contactPeople : '-' }}</div>
                  </div>
                  <div class="item_name">
                    <div class="txt1">手机号码：</div>
                    <div class="txt2">{{ dataSource.contactPhone ? dataSource.contactPhone : '-' }}</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </van-tab>
        <van-tab title="维修履历">
          <div class="detailbox_item mt175">
            <div class="detailbox_item_title">车辆维修履历</div>
            <div class="repair_content">
              <div v-if="repairList && repairList.length != 0" class="repair_list">
                <div v-for="(item, index) in repairList" :key="index" class="repair_item">
                  <div class="item_top">
                    <div class="item_num">
                      <img class="item_icon" src="@/assets/images/repair_icon.png" />
                      <div class="item_name">工单编号：{{ item.repairNumber }}</div>
                    </div>
                    <div class="item_btn" @click="goRepairDetail(item)">详情</div>
                  </div>
                  <div class="item_bottom">
                    <div class="item_box">
                      <div class="item_lt">
                        <div class="item_lable">工单类型：</div>
                        <div class="item_val">{{ item.repairWorkBillType ? item.repairWorkBillType : '- -' }}</div>
                      </div>
                      <div class="item_rt">
                        <div class="item_lable">服务顾问：</div>
                        <div class="item_val">{{ item.serverPersonName ? item.serverPersonName : '- -' }}</div>
                      </div>
                    </div>
                    <div class="item_box">
                      <div class="item_lt">
                        <div class="item_lable">进场时间：</div>
                        <div class="item_val">{{ item.repairBizDate ? item.repairBizDate : '- -' }}</div>
                      </div>
                      <div class="item_rt">
                        <div class="item_lable">送修人：</div>
                        <div class="item_val">
                          {{ item.repairCus ? item.repairCus : '- -' }}
                          <span v-if="item.repairCusphone" class="item_tel" @click="handleTel(getAllName('送修人',dataSource.contactPeople), dataSource.contactPhone)">{{
                              item.repairCusphone ? item.repairCusphone : ''
                            }}</span>
                        </div>
                      </div>
                    </div>
                    <div class="item_box">
                      <div class="item_lt">
                        <div class="item_lable">合计金额：</div>
                        <div class="item_val">{{ item.repairVoucherAmt ? item.repairVoucherAmt + '(元)' : '- -' }}</div>
                      </div>
                    </div>
                    <div class="item_box">
                      <div class="item_lt">
                        <div class="item_lable">卡券抵用：</div>
                        <div class="item_val">{{ item.repairTotalSum ? item.repairTotalSum + '(元)' : '- -' }}</div>
                      </div>
                    </div>
                    <div class="item_box2">
                      <div class="item_lt">
                        <div class="item_lable">人工操作：</div>
                        <div class="item_val">{{ item.repairRstRemark ? item.repairRstRemark : '- -' }}</div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <div v-else class="no_icon">
                <img class="no_icon_img" src="@/assets/images/no_icon.png" />
                <div class="no_icon_txt">暂无内容</div>
              </div>
            </div>
          </div>
        </van-tab>

        <van-tab title="卡券信息">
          <div :class="cardList.length != 0 ? 'detailbg' : ''" class="detailbox_item mt175 mb60">
            <div class="card_content">
              <div v-if="cardList && cardList.length != 0" class="card_list">
                <div v-for="(item, index) in cardList" :key="index" class="card_item">
                  <div class="item_lt">¥{{ item.amount }}</div>
                  <div class="item_rt">
                    <div class="item_name">{{ item.couponsName }}</div>
                    <div class="item_number">券号：{{ item.ticketNumber }}</div>
                    <div class="item_time">
                      <div class="txt1">{{ item.usedDate }}领用</div>
                      <div>{{ item.expireDate }}到期</div>
                    </div>
                  </div>
                  <div class="item_type">{{ item.typeName }}</div>
                </div>
              </div>
              <div v-else class="no_icon" style="padding-top: 100px">
                <img class="no_icon_img" src="@/assets/images/no_icon.png" />
                <div class="no_icon_txt">暂无内容</div>
              </div>
            </div>
          </div>
        </van-tab>

        <van-tab title="车辆附件">
          <div class="detailbox_item mt175">
            <div class="detailbox_item_title">附件</div>
            <div v-if="fileList && fileList.length" class="carList mt">
              <div v-for="(item, index) in fileList" :key="index" class="carItem flex">
                <div class="file_lt">
                  <i class="iconfont icon-file"></i>
                  {{ item.ATTNAME }}
                </div>
                <i v-if="!item.downTxt" class="iconfont icon-download" @click="downloadFile(item)"></i>
                <span v-else class="downTxt">{{ item.downTxt }}</span>
              </div>
            </div>
            <!-- <van-field v-model="dataSource.timer" name="车辆附件" label="车辆附件" input-align="right" right-icon="arrow" placeholder="点击进行车辆附件管理" readonly @click="goFile"></van-field> -->
          </div>
        </van-tab>
        <van-tab title="关联任务">
          <div class="detailbox_item mt175">
            <div class="detailbox_item_title">本车关联任务</div>

            <div class="relat_tab">
              <div v-for="(item, index) in relatTabList" :key="index" :class="relatTabIndex == index ? 'active' : ''"
                   class="relat_tab_item" @click="handleRelatChange(index)">
                {{ item.name }}
              </div>
            </div>
            <div v-if="relevanceList && relevanceList.length != 0" class="relat_content">
              <div v-for="(item, index) in relevanceList" :key="index" class="relat_item" @click="handleDealTask(item)">
                <div class="relat_content_header">
                  <div class="name">{{ item.taskName }}</div>
                  <div :class="item.oneBillStatus == '已处理' ? '' : 'status2'" class="status">{{ item.oneBillStatus }}
                  </div>
                </div>
                <div class="relat_carInfo">{{ item.taskDes ? item.taskDes : '-' }}</div>

                <div class="relat_user">
                  <div class="relat_user_lt">任务跟进人员：{{ item.taskPerson ? item.taskPerson : '-' }}</div>
                  <div class="relat_user_rt">应跟进时间：{{ item.shuldFollowTime ? item.shuldFollowTime : '-' }}</div>
                </div>
              </div>
            </div>
            <div v-else class="no_icon">
              <img class="no_icon_img" src="@/assets/images/no_icon.png" />
              <div class="no_icon_txt">暂无内容</div>
            </div>
          </div>
        </van-tab>
      </van-tabs>
    </div>

    <!-- 底部tab -->
    <!-- <div class="tabBarBox">
      <van-tabs v-model="tabActive">
        <van-tab title="车辆">
          <div class="tabCar">
            <van-field
              v-model="dataSource.totalPrp"
              name="车辆属性值"
              label="车辆属性值"
              input-align="right"
              readonly
            ></van-field>
            <van-field
              v-model="dataSource.deliverTime"
              name="购车时间"
              label="购车时间"
              input-align="right"
              readonly
            ></van-field>
            <van-field
              v-model="dataSource.inusuranceDate"
              name="保险到期日"
              label="保险到期日"
              input-align="right"
              readonly
            ></van-field>
            <van-field
              v-model="dataSource.inusuranceNumber"
              name="最近保险登记单"
              label="最近保险登记单"
              input-align="right"
              readonly
              @click="handleInsurance"
              label-width="130px"
            ></van-field>
            <van-field
              v-model="dataSource.inusuranceType"
              name="保险类型"
              label="保险类型"
              input-align="right"
              readonly
            ></van-field>
            <van-field
              v-model="dataSource.inusuranceComName"
              name="保险公司"
              label="保险公司"
              input-align="right"
              readonly
            ></van-field>
            <van-field
              v-model="dataSource.repairtime"
              name="保修到期日"
              label="保修到期日"
              input-align="right"
              readonly
            ></van-field>
            <van-field
              v-model="dataSource.carType"
              name="车辆来源"
              label="车辆来源"
              input-align="right"
              readonly
            ></van-field>

            <van-field
              v-model="dataSource.memberTies"
              name="是否会员绑定车辆"
              label="是否会员绑定车辆"
              input-align="right"
              label-width="170px"
              readonly
            ></van-field>
            <van-field
              v-model="dataSource.resSell"
              name="车辆是否已卖"
              label="车辆是否已卖"
              input-align="right"
              readonly
            ></van-field>

          </div>
        </van-tab>
        <van-tab title="卡券">
          <div class="tabCar">
            <div
              class="cardList"
              v-if="cardList.length != 0"
            >
              <div
                class="cardItem"
                v-for="(item, index) in cardList"
                :key="index"
              >
                <div class="box flex">
                  <div class="cardItem_lt flex">
                    <div class="price_icon">¥</div>
                    <div class="price">
                      <div class="txt">{{ item.amount }}</div>
                      <div class="name">{{ item.couponsName }}</div>
                    </div>
                  </div>
                  <div class="cardItem_rt">
                    <div class="label_name flex">
                      <div class="label_txt">{{ item.typeName }}</div>
                      <div class="label_txt1">{{ item.name }}</div>
                    </div>
                    <div class="label_time">{{ item.usedDate }}领用</div>
                    <div class="label_time">{{ item.expireDate }}到期</div>
                  </div>
                </div>
                <div class="cardNo">券号{{ item.ticketNumber }}</div>
              </div>
            </div>
            <van-empty
              class="noContent"
              description="暂无数据"
              v-else
            />
          </div>
        </van-tab>
        <van-tab title="维修履历">
          <div class="tabCar">
            <div
              class="repairData"
              v-if="repairList.length != 0"
            >
              <div
                class="repairItem"
                v-for="(item, index) in repairList"
                :key="index"
                @click="goRepairDetail(item)"
              >
                <div class="item_title flex">
                  <div class="txt">履历编号：{{ item.repairNumber }}</div>
                  <i class="iconfont icon-right"></i>
                </div>
                <div class="item_content">
                  <div class="item_contentbox flex">
                    <div class="item_data flex">
                      <div class="item_data_label">工单类型：</div>
                      <div class="item_data_value">
                        {{ item.repairWorkBillType }}
                      </div>
                    </div>
                    <div class="item_data flex">
                      <div class="item_data_label">服务顾问：</div>
                      <div class="item_data_value">
                        {{ item.serverPersonName }}
                      </div>
                    </div>
                  </div>

                  <div class="item_content_data">
                    <div class="item_data flex">
                      <div class="item_data_label">进场时间：</div>
                      <div class="item_data_value">
                        {{ item.repairBizDate }}
                      </div>
                    </div>
                    <div class="item_data flex">
                      <div class="item_data_label">合计金额：</div>
                      <div class="item_data_value">
                        {{ item.repairVoucherAmt }}元
                      </div>
                    </div>
                    <div class="item_data flex">
                      <div class="item_data_label">卡券抵用金额：</div>
                      <div class="item_data_value">
                        {{ item.repairTotalSum }}元
                      </div>
                    </div>
                    <div class="item_data item_remark">
                      <div class="item_data_label item_data_width">
                        人工操作：
                      </div>
                      <div class="item_data_value txt">
                        {{ item.repairRstRemark }}
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>

            <van-empty
              class="noContent"
              description="暂无数据"
              v-else
            />
          </div>
        </van-tab>
        <van-tab title="联系人">
          <div class="tabCar">
            <div class="contactbox">
              <div class="contactItem flex">
                <div class="contact_lt">
                  <div class="header flex">
                    <div class="txt">客户</div>
                    <div class="name">{{ dataSource.customerName }}</div>
                  </div>
                  <div class="tel">{{ dataSource.mobile }}</div>
                </div>
                <div class="contact_rt">
                  <a @click="handleTel(dataSource.mobile)">
                    <i class="iconfont icon-tel"></i>
                  </a>
                  <i
                    class="iconfont icon-wx"
                    @click.stop="getExList(dataSource)"
                  ></i>
                </div>
              </div>
            </div>
          </div>
        </van-tab>
        <van-tab title="车辆附件">
          <van-field
            v-model="dataSource.timer"
            name="车辆附件"
            label="车辆附件"
            input-align="right"
            right-icon="arrow"
            placeholder="点击进行车辆附件管理"
            readonly
            @click="goFile"
          ></van-field>
        </van-tab>
        <van-tab title="本车关联任务">
          <div
            class="orderList"
            v-if="relevanceList && relevanceList.length != 0"
          >
            <div
              class="orderItem"
              v-for="(item, index) in relevanceList"
              :key="index"
            >
              <div class="orderItem_header">
                <div
                  class="orderItem_lt"
                  @click="goTaskDetail(item.billId)"
                >
                  <div class="carNo">{{ item.taskName }}</div>
                  <div class="carStatus">
                    {{ item.oneBillStatus }}
                  </div>
                </div>
                <div class="orderItem_rt">跟进人：{{ item.taskPerson }}</div>
              </div>
              <div
                class="orderItem_content"
                @click="goTaskDetail(item.billId)"
              >
                <div class="orderItem_data time">
                  <div class="order_label">任务描述</div>
                  <div class="txt">{{ item.taskDes ? item.taskDes : "-" }}</div>
                </div>

                <div class="orderItem_data time">
                  <div class="order_label">应跟进时间</div>
                  <div class="txt">
                    {{ item.shuldFollowTime ? item.shuldFollowTime : "-" }}
                  </div>
                </div>
              </div>
            </div>
          </div>
        </van-tab>
      </van-tabs>
    </div>-->
    <!--
    <div class="addBtn">
      <div
        class="orderItem_filebox"
        @click="applyRepair"
      >
        <i class="iconfont icon-add"></i>
        维修预约
      </div>
    </div>-->
    <div v-if="tabIndex == 0" class="addBtn">
      <div class="orderItem_filebox" @click="applyRepair">维修预约</div>
    </div>
    <div v-if="tabIndex == 4" class="addBtn">
      <div class="orderItem_filebox" @click="goFile">附件管理</div>
    </div>
    <van-dialog v-model="showDialog" :showConfirmButton="false" show-cancel-button title>
      <div class="contact_list">
        <div v-for="(item, index) in contactList" :key="index" class="contact_item flex">
          <div class="contact_lt flex">
            <img v-if="item.avatar" :src="item.avatar" class="contact_header" />
            <div class="contact_name">{{ item.remark ? item.remark : item.name }}</div>
            <div v-if="item.type == 1" class="contact_com_wx">@微信</div>
            <div v-if="item.type == 2" class="contact_com">@{{ item.corpName ? item.corpName : item.corpFullName }}
            </div>
          </div>
          <div class="contact_btn" @click="runWxChat(item)">联系</div>
        </div>
      </div>
    </van-dialog>
    <!-- 更新车牌号 -->
    <van-dialog v-model="editCarNoVisible" :before-close="beforeCloseUpdateTel" show-cancel-button title="变更车牌号"
                @confirm="handleUpdateCarNo">
      <van-field v-model="updateCarNoData.carNo" input-align="right" label="当前车牌号码" name="当前车牌号码"
                 readonly></van-field>
      <van-field v-model="updateCarNoData.newCarNo" input-align="right" label="最新车牌号码"
                 name="最新车牌号码"></van-field>
    </van-dialog>
  </div>
</template>

<script>
import { DatetimePicker, Dialog, Empty, Field, Form, Notify, Search, Tab, Tabs, Toast, Uploader } from 'vant'
import carApi from '@/api/carApi'
import repairApi from '@/api/repairApi'
import { getCookies, isPhone } from '@/utils/util.js'
import axios from 'axios'
import qs from 'qs'
import taskApi from '@/api/taskApi'
import commonApi from '@/api/commonApi'
import aiccCallApi from '../../apiaicc/aiccCallApi'

const base_url = process.env.BASE_API
export default {
  name: 'registerDetail',
  components: {
    Search,
    Empty,
    Field,
    Form,
    Uploader,
    DatetimePicker,
    Tab,
    Tabs,
    Notify,
    Dialog,
    Toast
  },
  data() {
    return {
      showTimerPicker: false,
      dataSource: {
        id: '', //单车id
        vinCode: '', //车架号
        fixCenterId: '', //维修中心ID
        fixCenterName: '', //维修中心名称
        fixCenterNumber: '', //维修中心编码
        serverPsnId: '', //所属服务顾问ID
        serverPsnName: '', //所属服务顾问名字
        serverPsnNumber: '', //所属服务顾问编码
        carModelId: '', //车型ID
        carModelNameName: '', //车型名称
        carModelNumber: '', //车型编码
        lastIn: '', //上次进场时间
        carMile: '', //行驶里程数
        deliverTime: '', //购车时间
        inusuranceDate: '', //保险到期时间
        repairtime: '', //保修到期时间
        label: [], //标签
        style: '', //款式，年款
        sellPsnId: '', //所属销售人员
        sellPsnName: '', //所属销售人员
        carNo: '',
        totalPrp: '',
        memberTies: '', //是否会员绑车
        resSell: '', //车辆是否已转卖
        rmember: '', //是否会员客户
        inusuranceNumber: '', //最近保险单编号
        inusuranceId: '', //保险单ID
        inusuranceComName: '', //保险公司
        inusuranceType: '', //保险类型
      },
      uploader: [],
      columns: [],
      showSelectPicker: false,
      disabled: false,
      billId: '',
      tabActive: 0,
      cardList: [], //卡券列表
      repairList: [],
      showDialog: false,
      contactList: [],
      relevanceParams: {
        codeNo: '', //车架号或者车牌号，String，必填
        pageNo: 1, //当前页数，默认从1开始，每页显示十条，int，不能为空或者小于1
        oneBillStatus: 'unDeal', //任务一级状态
        twoBillStatus: '', //任务二级状态
        taskTypeId: '', //任务类型ID值
        taskPersonId: '', //任务跟进人，ID值
        fixCenterId: '',
        serverPsnId: '',
        taskStartCreateTime: '',
        taskEndCreateTime: '',
        isExceed: '', //是否逾期，1为是，0为否
        isGenRepBook: '', //是否生成维修预约单
        billId: '', //本身单据ID，此为详细界面使用
        carId: '', //车辆ID，此为详细界面使用
        isFactTask: '', //是否厂家任务
        isHuiYuan: '', //是否会员客户
        isHYCar: '', //是否会员绑定车辆
        userId: getCookies('userId') //用户ID，必填，String
      },
      relevanceList: [],
      carAssociatedInfo: {
        fixEndDate: '',
        zyEndDate: '',
        notCarBill: []
      },
      editCarNoVisible: false,
      //
      updateCarNoData: {
        carNo: '',
        newCarNo: '',
        id: ''
      },
      showTablistVisible: false,
      tabList: [
        {
          name: '车辆信息',
          value: 1
        },
        {
          name: '联系人信息',
          value: 2
        },
        {
          name: '维修履历',
          value: 3
        },

        {
          name: '卡券信息',
          value: 4
        },

        {
          name: '车辆附件',
          value: 5
        },
        {
          name: '关联任务',
          value: 6
        }
      ],
      tabIndex: 0,
      relatTabList: [
        {
          name: '未处理',
          value: 'unDeal'
        },
        {
          name: '已处理',
          value: 'isDeal'
        }
      ],
      relatTabIndex: 0,
      fileList: [],
      backIndex: 0,
      // otherInfo: {
      //   fixEndDate: '',
      //   zyEndDate:'',
      // }
      carInfoKhyy: {}, //运营门店维度车辆信息
    }
  },
  watch: {
    tabIndex: function(val, oval) {
      if (val) {
        //  {
        //   name: '车辆信息',
        //   value: 1
        // },
        // {
        //   name: '联系人信息',
        //   value: 2
        // },
        // {
        //   name: '维修履历',
        //   value: 3
        // },

        // {
        //   name: '卡券信息',
        //   value: 4
        // },

        // {
        //   name: '车辆附件',
        //   value: 5
        // },
        // {
        //   name: '关联任务',
        //   value: 6
        // }
        if (val == 2 && this.repairList.length == 0) {
          this.getRepairworkorder(this.billId)
        }
        if (val == 3 && this.cardList.length == 0) {
          this.getCoupon(this.billId)
        }

        if (val == 4 && this.fileList.length == 0) {
          this.getFileList(this.billId)
        }
        if (val == 5 && this.relevanceList.length == 0) {
          // this.getRelevanceTask(this.billId)
        }
      }
    }
  },

  mounted() {
    if (this.$route.query) {
      this.billId = this.$route.query.billId
      this.getCarInfoBase(this.billId)
      this.getCoupon(this.billId)
      this.getRepairworkorder(this.billId)
      if (this.$route.query.tabIndex) {
        this.tabIndex = parseInt(this.$route.query.tabIndex)
      }
      if (this.$route.query.backIndex) {
        this.backIndex = parseInt(this.$route.query.backIndex)
      } else {
        this.backIndex = 0
      }
    }
  },
  methods: {
    getFileList(billId) {
      commonApi.getFileList({ billId }).then((res) => {
        console.log(res)
        res.records &&
        res.records.map((item) => {
          item.downTxt = ''
          item.progress = null
        })
        this.fileList = res.records
        console.log(this.newFiles)
      })
    },
    handleTab(index) {
      this.tabIndex = index
      this.showTablistVisible = false
    },

    handleRelatChange(index) {
      this.relatTabIndex = index
      this.relevanceParams.oneBillStatus = this.relatTabList[index].value
      Toast.loading({
        message: '加载中...',
        forbidClick: true,
        overlay: true
      })
      this.getRelevanceTask(this.billId)
    },

    // 获取外部联系人信息
    getExList(carNo, name) {
      axios({
        url: `${base_url}/proxy/ext/user/getExList`,
        method: 'post',
        data: qs.stringify(
          // { url: 'http://wycl.autocnd.com:41080/ysc/assessManageDetail' },
          { carNo: carNo, name: name },
          { encode: false }
        ),
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          satoken: getCookies('token')
        }
      }).then((res) => {
        if (res.data && res.data.data && res.data.data.length != 0) {
          this.contactList = res.data.data
          this.showDialog = true
        } else {
          Notify({ type: 'danger', message: '未找到相关联系人' })
        }

        console.log('获取外部联系人信息:', res)
      })
    },
    runWxChat(data) {
      let vm = this
      axios({
        url: `${base_url}/proxy/qywx/jsdkConfig`,
        method: 'post',
        data: qs.stringify(
          // { url: 'http://wycl.autocnd.com:41080/ysc/assessManageDetail' },
          { url: location.href.split('?')[0], type: 'app' },
          { encode: false }
        ),
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          satoken: getCookies('token')
        }
      }).then((res) => {
        console.log('jsdkConfig:', res)
        let jsdk = res.data.data
        localStorage.setItem('jsdk', JSON.stringify(res.data.data))
        wx.agentConfig({
          corpid: jsdk.corpid, // 必填，企业微信的corpid，必须与当前登录的企业一致
          agentid: jsdk.agentid, // 必填，企业微信的应用id （e.g. 1000247）
          timestamp: jsdk.timestamp, // 必填，生成签名的时间戳
          nonceStr: jsdk.nonceStr, // 必填，生成签名的随机串
          signature: jsdk.signature, // 必填，签名，见附录-JS-SDK使用权限签名算法
          jsApiList: ['openEnterpriseChat'], //必填，传入需要使用的接口名称
          success: function(res) {
            console.log('agentConfig权限成功返回信息:', res)
            wx.openEnterpriseChat({
              // 注意：userIds和externalUserIds至少选填一个。内部群最多2000人；外部群最多500人；如果有微信联系人，最多40人
              userIds: '', //参与会话的企业成员列表，格式为userid1;userid2;...，用分号隔开。
              externalUserIds: data.externalUserid, // 参与会话的外部联系人列表，格式为userId1;userId2;…，用分号隔开。
              groupName: '', // 会话名称。单聊时该参数传入空字符串""即可。
              chatId: '', // 若要打开已有会话，需指定此参数。如果是新建会话，chatId必须为空串
              success: function(res) {
                var chatId = res.chatId //返回当前群聊ID，仅当使用agentConfig注入该接口权限时才返回chatId
                // 回调
              },
              fail: function(res) {
                if (res.errMsg.indexOf('function not exist') > -1) {
                  alert('版本过低请升级')
                }
              }
            })
          },
          fail: function(res) {
            console.log('agentConfig权限失败返回信息:', res)
            if (res.errMsg.indexOf('function not exist') > -1) {
              alert('版本过低请升级')
            }
          }
        })
      })
    },
    onClickLeft() {
      // this.$router.go(-1)
      if (this.backIndex != 0) {
        this.$route.params.backIndex = this.backIndex
        this.$router.back()
      } else {
        this.$router.go(-1)
      }
    },
    // 详情
    getCarInfoBase(id) {
      Toast.loading({
        message: '加载中...',
        forbidClick: true,
        overlay: true
      })
      carApi.getCarInfoBase({ id }).then((res) => {
        Toast.clear()

        if (res.code == 1) {
          res.data.label = res.data.label ? res.data.label.split(';') : []
          if (res.data && res.data.label && res.data.label.length != 0) {
            res.data.label.length = res.data.label.length - 1
          }
          res.data.memberTies = res.data.memberTies ? '是' : '否'
          res.data.resSell = res.data.resSell ? '是' : '否'
          res.data.rmember = res.data.rmember ? '是' : '否'
          this.dataSource = res.data

          this.getCarAssociatedInfo(this.dataSource.id)

          this.getRelevanceTask(this.billId)

          this.queryCarInfoKhyy(this.dataSource.id)
        }
      })
    },
    // 卡券
    getCoupon(id) {
      repairApi.getCoupon({ id, isReturnInvalidCoupons: '是' }).then((res) => {
        console.log(res)
        if (res.code == 1) {
          this.cardList = res.data
        }
      })
    },
    // 履历
    getRepairworkorder(id) {
      carApi.getRepairworkorder({ id }).then((res) => {
        if (res.code == 0) {
          this.repairList = res.data
        }
      })
    },

    //维修预约
    applyRepair() {
      this.$router.push({
        path: '/applyRepairEdit',
        query: { carId: this.billId }
      })
    },

    // 附件管理
    goFile() {
      this.$router.push({ path: 'fileMange', query: { billId: this.billId, billType: 'CarInfo' } })
    },
    goRepairDetail(data) {
      this.$router.push({
        path: '/repairOrderDetail',
        query: { billId: data.repairId }
      })
    },
    handleInsurance() {
      if (this.dataSource.inusuranceId) {
        this.$router.push({
          path: '/policyRobotDetail',
          query: { billId: this.dataSource.inusuranceId }
        })
      }
    },
    // 关联任务
    getRelevanceTask(id) {

      taskApi
        .getCustomerTaskList({
          ...this.relevanceParams,
          codeNo: this.dataSource.vinCode || '',
          billId: this.dataSource.billId,
          carId: id,
          fixCenterId: this.dataSource.fixCenterId,
        })
        .then((res) => {
          this.relevanceList = res.data
        })
    },
    goTaskDetail(id) {
      localStorage.setItem('taskBillId', id)
      this.$router.push({
        path: '/taskCenterDetail'
      })
    },
    handleUpdateCarNo() {
      if (!this.updateCarNoData.newCarNo) {
        Notify({ type: 'danger', message: '请输入最新车牌号' })
        return
      }
      let params = {
        ...this.updateCarNoData
      }
      if (!params.carNo || params.carNo=='') {
        params.carNo = '未登记车牌'
      }
      carApi
        .updateCarNo({
          ...params
        })
        .then((res) => {
          if (res.code == 1) {
            Notify({ type: 'success', message: '更新成功' })
            this.initData()
          } else {
            Notify({ type: 'danger', message: res.errorMessage })
          }
        })

      this.editCarNoVisible = false
    },
    editCarNo(data) {
      this.editCarNoVisible = true
      this.updateCarNoData.carNo = data.carNo
      this.updateCarNoData.id = data.id
    },
    beforeCloseUpdateTel(action, done) {
      if (action === 'confirm') {
        return done(false)
      } else {
        return done()
      }
    },
    // 下载文件
    downloadFile(data) {
      console.log(data)
      const formData = {
        attachId: encodeURI(data.ATTID),
        attachName: data.ATTNAME
      }
      const _this = this
      var link = document.createElement('a')

      if (data.fileName && commJs.testPlat() == 1) {
        link.href = `${base_url}/download/${data.fileName}`
        link.download = data.fileName
        link.click()
        URL.revokeObjectURL(link.href)
        return false
      }
      // if (this.lock) {
      //   return false
      // }

      data.progress = data.progress | 0
      if (data.progress == 100 && commJs.testPlat() == 0) {
        Toast('该文件已下载，请勿重复下载！')
        return false
      } else {
        data.downTxt = '已下载'
      }
      this.lock = true
      var config = {
        onUploadProgress: (progressEvent) => {
          var complete = ((progressEvent.loaded / progressEvent.total) * 100) | 0
          data.progress = complete
          if (data.progress == 100) {
            this.lock = false
          }
        }
      }
      const src = `${base_url}/proxy/cam/file/download?attachId=${formData.attachId}&attachName=${formData.attachName}`
      var link = document.createElement('a')
      data.fileName = formData.attachName
      link.href = src
      // link.download = res.data.data
      link.click()
      URL.revokeObjectURL(link.href)
      // commonApi.downloadFile({ ...formData, ...config }).then((res) => {
      //   const src = `${base_url}/file/download/${res.data.data}`
      //   var link = document.createElement('a')
      //   data.fileName = res.data.data
      //   link.href = src
      //   link.download = res.data.data
      //   link.click()
      //   URL.revokeObjectURL(link.href)
      // })
    },
    handleDealTask(record) {
      localStorage.setItem('taskBillId', record.billId)
      this.$router.push({
        path: '/taskCenterDetail'
      })
    },
    getCarAssociatedInfo(carId) {
      carApi.getCarAssociatedInfo({"carId": carId}).then((res) => {
        console.log('------------------------------------',res)
        if (res.code == 1) {
          this.carAssociatedInfo = res.data
        }
      })
    },
    queryCarInfoKhyy(carId) {
      carApi.queryCarInfoKhyy({carId: carId, org_Id: localStorage.getItem('orgId')}).then((res) => {
        if (res.code == 1) {
          this.carInfoKhyy = res.data[0]
        }
      })
    },
    getAllName(type,name){
      console.log(name,'getAllName');
      let allname=this.dataSource.carNo ? this.dataSource.carNo:(this.dataSource.vinCode ? "VIN:"+this.dataSource.vinCode.substring(this.dataSource.vinCode.length - 6):"")
      // let allname=this.dataSource.vinCode ? "VIN:"+this.dataSource.vinCode.substring(this.dataSource.vinCode.length - 6):""
      return allname+type+(name?name:"");
    },
    handleTel(telname, tel) {
      console.log("handleTel-isAiccUser", localStorage.getItem("isAiccUser"));
      if (localStorage.getItem("isAiccUser") + "" == "true") {
        this.call(telname, tel)
      } else { //走之前的方法
        if (isPhone()) {
          window.location.href = `tel:${tel}`
        } else {
          Toast('请在手机端使用此功能')
        }
      }
    },
    call(telname, tel) {
      let vm = this
      if (tel === "" || tel === null) {
        Dialog.alert({
          title: '',
          message: '号码不能为空'
        }).then(() => {
          // on close
        })
        return
      } else { //手机
        if (!vm.validMobile(tel)) {
          Dialog.alert({
            title: '',
            message: '号码不正确'
          }).then(() => {
            // on close
          })
          return
        }
      }
      let isPc = vm.checkIsPC()
      // isPc = true
      Toast.loading({
        message: '拨打中，请稍后...',
        forbidClick: true,
        overlay: true
      })
      if (isPc) { //如果是PC端
        vm.doPcCallOut(telname, tel, isPc)
      } else { //唤起小程序
        vm.doMobileCallout(telname, tel, isPc)
      }
    },
    validMobile(str) {
      return /^1[3456789]\d{9}$/.test(str) || /^0[0-9-]{10,13}$/.test(str)
    },
    checkIsPC() {
      var userAgentInfo = navigator.userAgent;
      var Agents = ["Android", "iPhone",
        "SymbianOS", "Windows Phone",
        "iPad", "iPod"
      ];
      var flag = true;
      for (var v = 0; v <= Agents.length; v++) {
        if (userAgentInfo.indexOf(Agents[v]) >= 0) {
          flag = false;
          break;
        }
      }
      return flag;
    },
    doPcCallOut(telname, tel, isPc) {
      aiccCallApi.callOut({
        customerNumber: tel,
        customerName: telname,
        billId: this.dataSource.billId,
        billOrgId: null,
        carId: this.dataSource.carId,
        carModelName: this.dataSource.carModelName,
        fixCenterId: this.dataSource.fixCenterId,
        fixCenterName: this.dataSource.fixCenterName,
        insCmpName: this.dataSource.insCmpName,
        type: isPc == true ? "pc" : "phone"
      }).then((res) => {
        Toast.clear()
        if (res.code == 0) {
          Notify({
            type: 'success',
            message: '呼叫成功，请稍后'
          })

        } else {
          Dialog.alert({
            title: '',
            message: res.msg
          }).then(() => {
            // on close
          })
          if (res.code == -900 && res.msg == '坐席未绑定IP话机,请先绑定IP话机') {
            this.$router.push("/seatPhone");
          }
        }
      })
    },
    doMobileCallout(telname, tel, isPc) {
      let vm = this
      aiccCallApi.callOut({
        customerNumber: tel,
        customerName: telname,
        billId: this.dataSource.billId,
        billOrgId: null,
        carId: this.dataSource.carId,
        carModelName: this.dataSource.carModelName,
        fixCenterId: this.dataSource.fixCenterId,
        fixCenterName: this.dataSource.fixCenterName,
        insCmpName: this.dataSource.insCmpName,
        type: isPc == true ? "pc" : "phone"
      }).then((callres) => {
        console.log('AICC获取tokenInfo成功返回信息:', callres)
        if (callres.code == 0) {
          vm.tokenInfo = callres.data
          vm.toMiniprogram()
        } else {
          Toast.clear()
          Dialog.alert({
            title: '',
            message: callres.msg
          }).then(() => {
            // on close
          })
          if (res.code == -900 && res.msg == '坐席未绑定手机号码,请先绑定手机号码') {
            this.$router.push("/seatPhone");
          }
        }
      })
    },
    toMiniprogram() {
      let vm = this
      axios({
        url: `${base_url}/proxy/qywx/jsdkConfig`,
        method: 'post',
        data: qs.stringify(
          // { url: 'http://wycl.autocnd.com:41080/ysc/assessManageDetail' },
          {
            url: location.href.split('?')[0],
            type: 'app'
          }, {
            encode: false
          },
        ),
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          satoken: getCookies('token'),
        },
      }).then((res) => {
        console.log('jsdkConfig:', res)
        let jsdk = res.data.data
        localStorage.setItem('jsdk', JSON.stringify(res.data.data))
        wx.agentConfig({
          corpid: jsdk.corpid, // 必填，企业微信的corpid，必须与当前登录的企业一致
          agentid: jsdk.agentid, // 必填，企业微信的应用id （e.g. 1000247）
          timestamp: jsdk.timestamp, // 必填，生成签名的时间戳
          nonceStr: jsdk.nonceStr, // 必填，生成签名的随机串
          signature: jsdk.signature, // 必填，签名，见附录-JS-SDK使用权限签名算法
          jsApiList: ['launchMiniprogram'], //必填，传入需要使用的接口名称
          success: function(res) {
            console.log('agentConfig权限成功返回信息:', res)
            // wx9e482fe1abf18c87
            // appid: 'wx02e51afc29cecca4', // 需跳转的小程序appid
            wx.invoke(
              'launchMiniprogram', {
                appid: vm.tokenInfo.appId, // 需跳转的小程序appid
                // appid: 'wx9e482fe1abf18c87', // 测试跳转的appid
                path: `pages/calling/calling?token=${vm.tokenInfo.token}&enterpriseId=${vm.tokenInfo.enterpriseId}&cno=${vm.tokenInfo.cno}&called_number=${vm.tokenInfo.calledNumber}&platform=${vm.tokenInfo.platform}&type=1`, // 所需跳转的小程序内页面路径及参数
              },
              function(res) {
                Toast.clear()
                if (res.err_msg == 'launchMiniprogram:ok') {
                  // 正常
                } else {
                  // 错误处理
                }
              },
            )
          },
          fail: function(res) {
            Toast.clear()
            console.log('agentConfig权限失败返回信息:', res)
            if (res.errMsg.indexOf('function not exist') > -1) {
              alert('版本过低请升级')
            }
          },
        })
      })
    },
  }
}
</script>

<style lang="less" scoped>
//@font-face {
//  font-family: 'Alibaba';
//  src: url('~@/assets/fonts/alibaba2.ttf');
//}

body {
  //font-family: 'Alibaba';
}

.registerDetail {
  //font-family: 'Alibaba';
}

.flex {
  display: flex;
}

.registerDetail {
  background: #f3f3f3;
  overflow: auto;

  .detail_header {
    justify-content: space-between;
    margin: 0.2rem 0.2rem;
    border-radius: 5px;
    background: #fff;
    padding: 0.3rem;
    position: relative;
    overflow: hidden;

    .detail_header_lt {
      .carNo {
        font-size: 0.32rem;
        font-weight: bold;
        margin-bottom: 0.2rem;

        .icon-right {
          margin-left: 0.2rem;
          color: #409eff;
        }
      }

      .hank {
        font-size: 0.28rem;
        color: #666;
      }
    }

    .detail_header_rt {
      justify-content: flex-start;

      .txt {
        font-size: 0.28rem;
        color: #161616;
      }

      .icon-tel {
        color: #fff;
        background: #35bc04;
        font-size: 0.32rem;
        padding: 0.1rem;
        border-radius: 50%;
        margin-right: 0.1rem;
      }
    }
  }

  .formData {
    background: #fff;
  }
}

/deep/ .label_box .van-field__control--custom {
  display: inline !important;
}

.label_item {
  color: #35bc04;
  border: 1px solid #35bc04;
  border-radius: 4px;
  margin-right: 0.1rem;
  min-width: 0.4rem;
  padding: 0.01rem 0.1rem;
  text-align: center;
  font-size: 0.2rem;
  float: left;
  margin-bottom: 0.1rem;

  &:last-child {
    margin-right: 0;
  }
}

.tabCar {
  margin-top: 0.1rem;
  padding-bottom: 1.3rem;
}

// 卡券
.cardList {
  margin: 0.1rem 0.2rem 0.3rem 0.2rem;
  box-sizing: border-box;

  .cardItem {
    background: #fff;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 0.2rem;

    .box {
      overflow: hidden;

      .cardItem_lt {
        padding: 0.3rem 0.2rem;
        text-align: center;
        box-sizing: content-box;
        background: #ff91d7;
        color: #fff;
        overflow: hidden;
        height: 1.4rem;
        width: 30%;

        .price_icon {
          font-size: 0.3rem;
          color: #fff;
        }

        .price {
          color: #fff;

          .txt {
            font-size: 0.8rem;
            font-weight: bold;
          }

          .name {
            font-size: 0.28rem;
          }
        }
      }

      .cardItem_rt {
        padding: 0.3rem;
        border-bottom: 1px dashed #ccc;
        overflow: hidden;
        height: 1.4rem;
        width: 70%;

        .label_name {
          .label_txt {
            background: #ff3415;
            color: #fff;
            border-radius: 3px;
            text-align: center;
            padding: 0.07rem 0.2rem;
            font-size: 0.24rem;
            margin-right: 0.1rem;
          }

          .label_txt1 {
            color: #333;
            font-size: 0.28rem;
            font-weight: bold;
          }
        }

        .label_time {
          margin-top: 0.2rem;
          font-size: 0.26rem;
          color: #666;
        }
      }
    }

    .cardNo {
      padding: 0.2rem 0.3rem 0.2rem 0.2rem;
      font-size: 0.28rem;
      color: #333;
    }
  }
}

// 维修
.repairData {
  margin: 0.1rem 0.2rem 0.3rem 0.2rem;
  box-sizing: border-box;
  overflow: hidden;

  .repairItem {
    background: #fff;
    overflow: hidden;
    border-radius: 5px;
    padding: 0.2rem;
    margin-bottom: 0.2rem;

    .item_title {
      justify-content: space-between;
      padding: 0.1rem 0.1rem 0.2rem 0.3rem;
      border-bottom: 1px solid #f1f1f1;
      font-size: 0.28rem;
      margin-bottom: 0.3rem;
      position: relative;

      &::before {
        content: '';
        display: block;
        width: 3px;
        height: 15px;
        background: #409eff;
        position: absolute;
        left: 0;
        top: 5px;
      }
    }

    .item_content {
      padding: 0 0.3rem;

      .item_contentbox {
        justify-content: space-between;
      }

      .item_data {
        font-size: 0.28rem;
        margin-bottom: 0.2rem;
        display: flex;

        &.item_remark {
          display: block;
        }

        .item_data_label {
          color: #808080;
        }

        .item_data_value {
          color: #333;

          &.txt {
            line-height: 0.32rem;
          }
        }
      }

      .item_data_width {
        float: left;
      }
    }
  }
}

// 联系人
.contactbox {
  margin: 0.1rem 0.2rem 0.3rem 0.2rem;
  padding-bottom: 0.1rem;

  .contactItem {
    justify-content: space-between;
    background: #fff;
    padding: 0.2rem;
    margin-bottom: 0.1rem;
    border-radius: 4px;

    .contact_lt {
      .header {
        margin-bottom: 0.2rem;
        color: #333;

        .txt {
          font-size: 0.2rem;
          margin-right: 0.2rem;
          background: #409eff;
          padding: 0.1rem 0.2rem;
          border-radius: 4px;
          color: #fff;
        }

        .name {
          font-size: 0.28rem;
        }
      }

      .tel {
        font-size: 0.3rem;
        color: #333;
      }
    }

    .contact_rt {
      .icon-wx {
        font-size: 0.7rem;
        color: #409eff;
      }

      .icon-tel {
        font-size: 0.36rem;
        background: #35bc04;
        color: #fff;
        text-align: center;
        padding: 0.1rem;
        border-radius: 50%;
        position: relative;
        top: -6px;
        margin-right: 0.1rem;
      }
    }
  }
}

.addBtn {
  position: fixed;
  bottom: 0rem;
  width: 100%;
  z-index: 9;
  height: 54px;
  background: #fff;
  padding-top: 14px;

  .orderItem_filebox {
    margin: auto;
    text-align: center;
    font-size: 15px;
    color: #fff;
    padding: 12px;
    border-radius: 50px;
    width: 162px;
    font-weight: 600;
    background: linear-gradient(316deg, #3975c6 0%, #71a4ea 100%);
    border-radius: 156px 156px 156px 156px;

    &.btn_disable {
      background: #b8b8b8;
    }
  }
}

.noContent {
  margin-top: 0rem;
}

.contact_list {
  padding: 0.5rem 0.2rem 0 0.2rem;

  .contact_item {
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .contact_lt {
    font-size: 0.28rem;
    color: #23ec1c;

    .contact_header {
      width: 30px;
      height: 30px;
      display: block;
      border-radius: 5px;
      margin-right: 5px;
    }

    .contact_name {
      font-size: 0.28rem;
      color: #333;
      margin-left: 5px;
    }

    .contact_com {
      color: #f65e07;
      font-size: 0.28rem;
    }

    .contact_com_wx {
      color: #23ec1c;
      font-size: 0.28rem;
    }
  }

  .contact_btn {
    background: #409eff;
    color: #fff;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 0.28rem;
  }
}

.orderList {
  margin: 0.2rem;
  overflow: hidden;
  padding-bottom: 50px;

  .orderItem {
    padding: 0.3rem;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 0.3rem;

    .orderItem_header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.3rem;
      padding-bottom: 0.2rem;
      border-bottom: 1px solid #f6f6f6;
      position: relative;

      .orderItem_lt {
        .carNo {
          font-size: 0.3rem;
          color: #333;
          margin-right: 0.2rem;
          font-weight: bold;
        }

        .carStatus {
          background: #35bc04;
          color: #fff;
          border-radius: 4px;
          padding: 0.1rem 0.2rem;
          font-size: 0.24rem;
          text-align: center;
          width: 1rem;
          margin-top: 0.1rem;
        }
      }

      .orderItem_rt {
        display: flex;
        align-items: center;
        align-self: center;
        justify-content: flex-start;
        color: #666;
        font-size: 0.28rem;

        .txt {
          font-size: 0.28rem;
          color: #161616;
        }

        .icon-tel {
          font-size: 0.64rem;
          color: #35bc04;
          margin-right: 0.1rem;
          // color: #fff;
          // background: #35bc04;
          // font-size: 0.32rem;
          // padding: 0.1rem;
          // border-radius: 50%;
          // margin-right: 0.2rem;
        }

        .icon-wx {
          color: #409eff;
          font-size: 0.65rem;
        }
      }
    }

    .orderItem_content {
      display: flex;
      justify-content: flex-start;
      flex-wrap: wrap;
      align-items: center;

      .orderItem_data {
        display: flex;
        justify-content: flex-start;
        // align-items: center;
        width: 50%;
        margin-bottom: 0.2rem;
        font-size: 0.28rem;
        box-sizing: content-box;
        color: #333;

        .order_label {
          font-size: 0.28rem;
          color: #333;
          width: 70px;
          margin-right: 10px;
        }

        .txt {
          font-size: 0.28rem;
          color: #666;
          flex: 1;
          // white-space: nowrap;
          // overflow: hidden;
          // text-overflow: ellipsis;
        }

        &.time {
          width: 100%;
        }
      }
    }

    .orderItem_file {
      background: #ebebeb;
      color: #333;
      border-radius: 5px;
      padding: 0.2rem 0;
      text-align: center;
      width: 100%;
      font-size: 0.28rem;
      display: flex;
      align-items: center;
      justify-content: center;

      .file_item {
        width: 33.33%;
        border-right: 1px solid #ccc;

        .icon-tel {
          font-size: 0.34rem;
          color: #35bc04;
          margin-right: 0.1rem;
        }

        .icon-mileage {
          font-size: 0.4rem;
          color: #409eff;
          margin-right: 0.1rem;
          position: relative;
          top: 0.04rem;
        }

        .icon-gw {
          font-size: 0.4rem;
          color: #409eff;
          margin-right: 0.1rem;
          position: relative;
          top: 0.04rem;
        }

        &:last-child {
          border: none;
        }
      }
    }
  }
}

.icon-edit {
  font-size: 20px;
}

.task_header {
  background: url('~@/assets/images/title_bg.png') no-repeat center;
  font-size: 0.24rem;
  height: 50px;
  background-size: 100% 100%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;

  .top_title {
    position: relative;
    width: 100%;
    height: 50px;

    .top_title_back {
      position: absolute;
      left: 10px;
      line-height: 50px;
      color: #fff;
    }

    .top_title_val {
      text-align: center;
      line-height: 50px;
      color: #fff;
      font-weight: bold;
      font-size: 16px;
    }

    .task_transbox {
      position: absolute;
      right: 10px;
      top: 5px;
      color: #fff;
      z-index: 10;
      font-weight: 400;
      font-size: 10px;
      text-align: center;

      .task_trans {
        width: 24px;
        display: block;
        margin: auto;
      }
    }
  }

  .task_header_data {
    .task_header_date {
      margin-bottom: 10px;
      display: flex;
      align-items: center;

      .task_header_date_w {
        width: 12.5%;
      }

      .task_header_date_item {
        width: 12.5%;
        text-align: center;
        color: #fff;
        font-size: 14px;
      }
    }

    .task_header_followData {
      display: flex;
      align-items: center;
      color: #fff;
      margin-bottom: 10px;

      .task_header_followData_tt {
        width: 12.5%;
        text-align: center;
      }

      .task_header_followData_item {
        width: 12.5%;
        text-align: center;
        font-size: 12px;
        font-weight: bold;
      }
    }
  }
}

.task_detail {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  z-index: 100;

  .task_detail_header {
    padding: 17px 0 10px;
    background: #fff;
    // margin-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
    position: relative;

    .title {
      text-align: center;
      //font-family: Alibaba;
      font-weight: 700;
      font-size: 16px;
      color: #333333;
      max-width: 60%;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      margin: auto;

      .icon-edit {
        font-size: 14px;
      }
    }

    .name {
      display: flex;
      text-align: center;
      width: 100%;
      justify-content: center;
      margin-top: 10px;

      .txt {
        //font-family: Alibaba;
        font-weight: 400;
        font-size: 12px;
        color: #999999;
        text-align: center;
        margin-right: 10px;
      }
    }

    .status {
      //font-family: Alibaba;
      font-weight: 700;
      font-size: 12px;
      text-align: center;
      position: absolute;
      top: 16px;
      right: 10px;
      border-radius: 2px;
      padding: 5px;
      display: flex;
      align-items: center;

      .status_icon {
        width: 12px;
        margin-right: 4px;
      }

      &.status1 {
        color: #ff1100;
        background: rgba(255, 48, 33, 0.2);
      }

      &.status2 {
        color: #00b42a;
        background: #e8ffea;
      }
    }
  }

  .tabbox {
    // padding: 0 10px;
    padding-top: 15px;
    border-top: 1px solid #f7f5f5;
    margin-top: 15px;
    position: relative;
    width: 7.5rem;
    overflow: hidden;

    .tab_list {
      width: 10rem;
      overflow-x: auto;
      clear: both;

      .tab_item {
        font-weight: 400;
        font-size: 14px;
        color: #4e5969;
        text-align: center;
        background: #f7f7f7;
        border-radius: 32px;
        padding: 8px 16px;
        margin-right: 6px;
        cursor: pointer;
        float: left;

        &:last-child {
          margin-right: 0;
        }

        &.active {
          color: #165dff;
          text-align: center;
          background: #d8e3ff;
        }
      }
    }
  }
}

.pop_tab {
  padding: 25px 32px;

  .title {
    font-weight: 700;
    font-size: 12px;
    color: #333333;
    line-height: 17px;
    text-align: left;
    margin-bottom: 20px;
  }

  .pop_tablist {
    width: 100%;

    .pop_tab_item {
      background: #f9f9f9;
      border-radius: 62px 62px 62px 62px;
      font-weight: 500;
      font-size: 10px;
      color: #4b4b4b;
      text-align: center;
      width: 30%;
      border: 1px solid #f9f9f9;
      margin-right: 5%;
      box-sizing: border-box;
      float: left;
      margin-bottom: 10px;
      padding: 7px 0;
      cursor: pointer;

      &:nth-child(3n) {
        margin-right: 0;
      }

      &.active {
        color: #ff4444;
        background: #ffd8d3;
        border-radius: 62px 62px 62px 62px;
        border: 1px solid #dd5953;
      }
    }
  }
}

.tabBarBox {
  position: relative;

  .icon_menubox {
    position: fixed;
    right: 0px;
    top: 116px;
    background: #fff;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 11;
  }

  .icon_menu {
    width: 27px;
    margin-left: 10px;
    // position: relative;
    // top: 0px;
    display: block;
    margin: auto;
    padding-top: 10px;
  }
}

.detailbox_item {
  margin-top: 10px;
  background: #fff;
  padding: 10px;

  .detailbox_item_title {
    font-size: 16px;
    font-weight: 700;
    color: #1d2129;
    margin-bottom: 14px;
    background: url('~@/assets/images/ttbg.png') no-repeat left bottom;
    background-size: 32px 6px;
  }

  .detail_content {
    background: #f9fafc;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #fbfcfe;
    padding: 17px 16px;

    .task_item_type {
      margin-bottom: 20px;

      .task_item_tt {
        font-weight: 800;
        font-size: 12px;
        color: #86909c;
        margin-bottom: 10px;
      }

      .task_item_val {
        font-weight: 700;
        font-size: 16px;
        color: #333333;
      }

      .task_item_desc {
        font-weight: 300;
        font-size: 14px;
        color: #000000;
        background: #f2f3f5;
        padding: 5px 6px;
      }
    }

    .task_itembox {
      overflow: hidden;

      .task_itembox_con {
        width: 50%;
        margin-bottom: 15px;
        float: left;

        .task_label {
          font-weight: 400;
          font-size: 12px;
          color: #86909c;
          margin-bottom: 5px;
        }

        .task_value {
          font-weight: 700;
          font-size: 16px;
          color: #2f2f2f;
        }
      }
    }
  }

  .relat_tab {
    display: flex;
    margin-bottom: 10px;

    .relat_tab_item {
      font-weight: 500;
      font-size: 12px;
      color: #333333;
      border-radius: 4px;
      padding: 5px 8px;
      background: #f7f7f7;
      margin-right: 5px;

      &.active {
        color: #165dff;
        background: #d8e3ff;
      }
    }
  }

  .relat_content {
    .relat_item {
      background: #ffffff;
      box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.09);
      border-radius: 4px 4px 4px 4px;
      border: 1px solid #fbfcfe;
      margin-bottom: 20px;
      padding: 10px 9px 12px;

      .relat_content_header {
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;

        .name {
          font-weight: bold;
          font-size: 14px;
          color: #333333;
        }

        .status {
          font-weight: 700;
          font-size: 12px;
          color: #00b42a;
          background: #e8ffea;
          border-radius: 2px 2px 2px 2px;
          padding: 5px 8px;

          &.status2 {
            background: rgba(255, 48, 33, 0.2);
            color: #ff1100;
          }
        }
      }

      .relat_carInfo {
        font-weight: 300;
        font-size: 14px;
        color: #000000;
        background: #f2f3f5;
        padding: 5px 6px;
        margin-bottom: 12px;
      }

      .relat_user {
        display: flex;
        justify-content: space-between;
        font-weight: bold;
        font-size: 12px;
        color: #165dff;
        background: #e8f5ff;
        border-radius: 2px 2px 2px 2px;
        padding: 5px 6px;
      }
    }
  }

  .followInfo_content {
    .followInfo_item {
      padding: 10px 0px 10px 20px;

      .followInfo_top {
        display: flex;
        align-items: center;
        margin-bottom: 10px;

        .followInfo_circle {
          background: #f2f2f2;
          border-radius: 50%;
          width: 9px;
          height: 9px;
          margin-right: 10px;
        }

        .followInfo_name {
          font-weight: 700;
          font-size: 14px;
          color: #86909c;
        }
      }

      .followInfo_box {
        display: flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;

        .followInfo_linebox {
          width: 1px;
          position: relative;
          -ms-flex-item-align: stretch;
          align-self: stretch;
          background: #f2f2f2;
          margin: 0 10px 0 4px;
        }

        .followInfo_val {
          width: 100%;
          padding: 12px 16px;
          background: #f9fafc;
          border-radius: 4px 4px 4px 4px;
          border: 1px solid #fbfcfe;
          flex: 1;

          .followInfo_val_item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;

            .item_label {
              font-weight: 400;
              font-size: 14px;
              color: #86909c;
            }

            .item_val {
              font-weight: 700;
              font-size: 14px;
              color: #2f2f2f;
            }
          }

          .followInfo_val_item2 {
            .item_label {
              font-weight: 400;
              font-size: 14px;
              color: #86909c;
              margin-bottom: 10px;
            }

            .item_val {
              font-weight: 300;
              font-size: 14px;
              color: #86909c;
              background: #f2f3f5;
              padding: 5px 6px;
            }
          }
        }
      }

      &.active {
        .followInfo_top {
          .followInfo_circle {
            background: #165dff;
          }

          .followInfo_name {
            color: #165dff;
          }
        }

        .followInfo_box {
          .followInfo_linebox {
            background: #165dff;
          }
        }
      }
    }
  }

  .carInfo_content {
    background: #f9fafc;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #fbfcfe;
    padding: 7px 16px;

    .carInfo_item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;

      .item_label {
        font-weight: 400;
        font-size: 12px;
        color: #86909c;
      }

      .item_val {
        font-weight: 700;
        font-size: 12px;
        color: #333333;
      }

      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .contact_content {
    .contact_item {
      box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.02);
      border-radius: 4px 4px 4px 4px;
      border: 1px solid #f4f4f6;
      margin-bottom: 3px;
      padding: 12px 10px 12px 10px;

      .contact_top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 14px;

        .item_label {
          font-weight: 700;
          font-size: 12px;
          color: #165dff;
          background: #e8f5ff;
          border-radius: 2px 2px 2px 2px;
          padding: 4px 5px;
        }

        .item_icon {
          display: flex;

          .item_img {
            width: 29px;
            height: 29px;
            margin-right: 17px;

            &:last-child {
              margin-right: 0;
            }
          }
        }
      }

      .contact_bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 4px;

        .item_name {
          display: flex;

          .txt1 {
            font-weight: 400;
            font-size: 12px;
            color: #86909c;
          }

          .txt2 {
            font-weight: 700;
            font-size: 12px;
            color: #2f2f2f;
          }
        }
      }
    }
  }

  .repair_content {
    .no_icon {
      margin-top: 60px;
    }

    .repair_list {
      .repair_item {
        box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.05);
        border-radius: 4px 4px 4px 4px;
        border: 1px solid #f4f4f6;
        padding: 10px;
        margin-bottom: 10px;

        .item_top {
          display: flex;
          justify-content: space-between;
          border-bottom: 1px solid #f7f5f5;
          padding-bottom: 10px;

          .item_num {
            display: flex;

            .item_icon {
              width: 11px;
              margin-right: 5px;
            }

            .item_name {
              font-weight: 800;
              font-size: 14px;
              color: #333333;
            }
          }

          .item_btn {
            font-weight: 400;
            font-size: 12px;
            color: #165dff;
          }
        }

        .item_bottom {
          padding-top: 8px;

          .item_box {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            align-items: center;
            width: 100%;

            .item_lt {
              display: flex;

              .item_lable {
                font-weight: 400;
                font-size: 12px;
                color: #86909c;
              }

              .item_val {
                font-weight: 400;
                font-size: 12px;
                color: #2f2f2f;
              }
            }

            .item_rt {
              background: #e8f5ff;
              border-radius: 2px 2px 2px 2px;
              font-weight: 700;
              font-size: 10px;
              color: #165dff;
              padding: 3px 5px;
              display: flex;

              .item_lable {}

              .item_val {}

              .item_tel {
                margin-left: 5px;
              }
            }
            .item_rt2 {
              display: flex;

              .item_lable {
                font-weight: 400;
                font-size: 12px;
                color: #86909c;
              }

              .item_val {
                font-weight: 400;
                font-size: 12px;
                color: #2f2f2f;
              }
            }
          }

          .item_box2 {
            .item_lt {
              display: flex;

              /* 使用弹性盒模型 */

              .item_lable {
                font-weight: 400;
                font-size: 12px;
                color: #86909c;
                width: 60px;
              }

              .item_val {
                font-weight: 400;
                font-size: 12px;
                color: #2f2f2f;
                width: calc(100% - 60px);
              }
            }
          }
        }
      }
    }
  }

  .card_content {
    min-height: calc(100vh - 150px);

    .card_item {
      border-radius: 4px;
      position: relative;
      height: 86px;
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      background: #fff;

      .item_lt {
        width: 134px;
        height: 86px;
        font-weight: 700;
        font-size: 36px;
        line-height: 86px;
        color: #ffffff;
        background: url('~@/assets/images/card_bg.png') no-repeat center;
        background-size: 134px 86px;
        text-align: center;
        margin-right: 10px;
        border-radius: 0px 12px 12px 0px;
      }

      .item_rt {
        padding-top: 10px;

        .item_name {
          margin-bottom: 8px;
          font-weight: 700;
          font-size: 12px;
          color: #2f2f2f;
        }

        .item_number {
          font-weight: 700;
          font-size: 12px;
          color: #2f2f2f;
          margin-bottom: 8px;
        }

        .item_time {
          font-weight: 400;
          font-size: 12px;
          color: #86909c;
          display: flex;

          .txt1 {
            margin-right: 10px;
          }
        }
      }

      .item_type {
        font-weight: 700;
        font-size: 10px;
        color: #ffffff;
        text-align: center;
        padding: 2px 10px;
        border-radius: 0px 4px 0px 4px;
        background: #ff2b2b;
        position: absolute;
        top: 0px;
        right: 0;
      }
    }
  }

  .no_icon {
    padding: 25px;

    .no_icon_img {
      width: 70px;
      display: block;
      margin: auto;
    }

    .no_icon_txt {
      font-weight: 400;
      font-size: 14px;
      color: #86909c;
      text-align: center;
      margin-top: 10px;
    }
  }
}

.mb80 {
  margin-bottom: 80px;
}

.mt0 {
  margin-top: 0px;
}

.mt175 {
  margin-top: 175px;
}

.mt160 {
  margin-top: 165px;
}

.mb60 {
  margin-bottom: 60px;
}

.detailbg {
  background: #f3f3f3;
}

/deep/ .van-tabs__line {
  display: none;
}

/deep/ .van-tab {
  font-weight: 400;
  max-width: 144px;
  font-size: 14px;
  color: #4e5969;
  text-align: center;
  background: #f7f7f7;
  border-radius: 32px;
  padding: 8px 16px;
  margin-right: 6px;
  // cursor: pointer;
  // flex: inherit;
}

/deep/ .van-tab--active {
  color: #165dff;
  text-align: center;
  background: #d8e3ff;
}

/deep/ .van-tabs__nav--line {
  height: 30px;
  padding: 10px;
}

/deep/ .van-tabs--line .van-tabs__wrap {
  height: auto;
  position: fixed;
  top: 116px;
  left: 0;
  width: 100%;
  z-index: 10;
  background: #fff;
}

/deep/ .van-tabs__wrap--scrollable .van-tabs__nav {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 85%;
}

.carList {
  background: #fff;

  .carItem {
    background: #fff;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    justify-content: space-between;

    .file_lt {
      font-size: 12px;
      color: #161616;
    }

    .icon-file {
      color: #999;
      margin-right: 0.1rem;
      position: relative;
      top: 1px;
    }

    .icon-download {
      font-size: 0.5rem;
      color: #409eff;
    }

    .vin {
      color: #666;
      font-size: 0.28rem;
    }

    &:last-child {
      border: none;
    }
  }
}
</style>
